Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unified push nextcloud notifications #47763

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

gavine99
Copy link

@gavine99 gavine99 commented Sep 5, 2024

minimal changes to set the stage to allow the existing 3rd party nextcloud unified push app to send system notifications as push notifications to nextcloud mobile client and talk apps - https://apps.nextcloud.com/apps/uppush / https://codeberg.org/NextPush/uppush.

requires deployment sync with pull request for nextcloud notifications app with same title - nextcloud/notifications#2027

these pull requests are independent of, but will ultimately work with, a pull request for the unified push app to enable it to send push notifications to the nextcloud mobile client and talk apps - https://codeberg.org/NextPush/uppush/pulls/17

i have also submitted pr's for the generic (f-droid) android nextcloud client and talk apps to leverage the pr's above to create an end-to-end solution for unified push notifications and talk;

nextcloud mobile client app: nextcloud/android#13516
nextcloud mobile talk app: nextcloud/talk-android#4169

  • this pr fails ci tests because it depends on the related notification app pr

…elated changes in nextcloud app. linted. Signed-off-by: Gavin Element <[email protected]>
Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some comments and blocking this for now.
Let's discuss in the notifications app PR what is really needed.

Comment on lines +30 to +31
* @since 9.0.0
* @since 30.0.0 throws {@see IncompleteNotificationException} instead of \InvalidArgumentException
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @since 9.0.0
* @since 30.0.0 throws {@see IncompleteNotificationException} instead of \InvalidArgumentException
* @since 31.0.0

Comment on lines +333 to +336
} catch (\InvalidArgumentException $e) {
// todo 33.0.0 Log as warning
// todo 39.0.0 Log as error
$this->logger->debug(get_class($app) . '::notify() threw \InvalidArgumentException which is deprecated. Throw \OCP\Notification\IncompleteNotificationException when the notification is incomplete for your app and otherwise handle all \InvalidArgumentException yourself.');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
} catch (\InvalidArgumentException $e) {
// todo 33.0.0 Log as warning
// todo 39.0.0 Log as error
$this->logger->debug(get_class($app) . '::notify() threw \InvalidArgumentException which is deprecated. Throw \OCP\Notification\IncompleteNotificationException when the notification is incomplete for your app and otherwise handle all \InvalidArgumentException yourself.');

But I'm also not sure about the other catch.

Copy link
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants